import request from '@/utils/request'

export function listPointParam(query) {
  return request({
    url: '/basic/paramInfo/listPointParam',
    method: 'get',
    params: query
  })
}

// 查询参数信息配置列表
export function listParamInfo(query) {
  return request({
    url: '/basic/paramInfo/list',
    method: 'get',
    params: query
  })
}

// 查询参数信息配置详细
export function getParamInfo(id) {
  return request({
    url: '/basic/paramInfo/' + id,
    method: 'get'
  })
}

// 新增参数信息配置
export function addParamInfo(data) {
  return request({
    url: '/basic/paramInfo',
    method: 'post',
    data: data
  })
}

// 修改参数信息配置
export function updateParamInfo(data) {
  return request({
    url: '/basic/paramInfo',
    method: 'put',
    data: data
  })
}

// 删除参数信息配置
export function delParamInfo(id) {
  return request({
    url: '/basic/paramInfo/' + id,
    method: 'delete'
  })
}

// 导出参数信息配置
export function exportParamInfo(query) {
  return request({
    url: '/basic/paramInfo/export',
    method: 'get',
    params: query
  })
}
